package chixing.day09.homework.work6;

public class OrderTest {
    public static void main(String[] args) {
        Order order1 = new OnlineOrder("101", 10, 2);
        Order order2 = new StoreOrder("102",20);
        Order[] orders = {order1,order2};
        double num = 0;
        for (Order o:orders) {
//            System.out.print("订单ID:" + o.getOrderId() + ",  订单类型:" );
            o.getOrderType();
            num +=OrderManager.printSummary(o);
        }
        System.out.println(Order.getOrderSumNumber());
        System.out.println(num);
    }
}
